Skip to main content

encoding

Type

property

Summary

Returns the encoding of the specified piece of text.

Syntax

the encoding of { button | graphic | group }
the encoding of [<chunk> of] <field>

Description

Use the encoding property to retrieve the encoding of the specified object or field chunk.

The encoding property of a button, graphic or group returns native if the engine is storing the label or text in the native encoding and unicode otherwise.

The encoding property of a field, or chunk of a field, returns native if the specified chunk is stored in native encoding, unicode if it is UTF-16, and mixed if it is a combination of the two.

note

The encoding property is read only and cannot be set.

Examples

get the encoding of button "myButton"
put the encoding of word 1 of field "language" into tEncoding

property: label, text, unicodeText, unicodeLabel

Compatibility and Support

Introduced

LiveCode 5.5

OS

mac

windows

linux

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?